CC=gcc
LD=gcc
CFLAGS=-Wall -g -O3
LFLAGS=

TARGET=sdltest
OBJS=sdltest.o

INCLUDE_DIR = -I/usr/include/SDL/
LIB_DIR = -L/usr/lib/

LIBS = -lSDL

all: $(TARGET)

$(TARGET): $(OBJS)
	$(LD) $(LFLAGS) $(LIB_DIR) $^ -o $@ $(LIBS)

%.o:%.c
	$(CC) $(CFLAGS) $(INCLUDE_DIR) -c $^ -o $@

clean:
	rm -rf *.o $(TARGET)
